<?php

class Widget
{
    protected $tpl;
    protected $context;

    /* 唯一标识名 */
    protected $name = 'widget';

    public function setTemplate(Template $t)
    {
        $this->tpl = $t;
    }

    public function render(){}

    public function delayRender()
    {
        return "<?php include {$this->context};?>";
    }
}

?>